<%--
  Created by IntelliJ IDEA.
  User: wenze-zero
  Date: 2021-06-01-001
  Time: 下午 08:02
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>test</title>
</head>
<body>
<%
    String username=request.getParameter("username");
    if(username==null)
        out.print("用户名为空！");
    else {
        if (username.equals("123")) {
            session.setAttribute("name", username);
        } else {
//            response.sendRedirect("login.jsp");
            out.print("登录成功！");
        }
    }
%>
</body>
</html>
